<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图</title>
    <style>
        div{
            width: 1000px;
            height: 1000px;
            /* 默认背景图是平铺，使用repeat填满盒子 */
            background-image: url(./cat.png);
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>